import { defineStore } from 'pinia'
import { post } from '@/api/http' 
interface WHType {
    "id": number,
    "typeCode": string,
    "typeName": string
}
const whStore = defineStore('wh',{
    state(){
        return{
            whTypeList:new Array<WHType>()
        }
    },
    getters:{
      
    },
    actions:{
        getWhTypeList(){
           
            const that = this
      
            post({
                url:'wms/warehouseType/getWarehoursTypePara',
                data:{
                }
            }).then((response)=>{
                if(response.code === 200){
                    that.whTypeList = response.data
                }
            })
        }
    }
})


export default whStore